home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / alsa-base.postrm < prev    next >
Text File  |  2008-09-15  |  501b  |  28 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5.  
  6.  
  7. if [ "$1" = "purge" ]; then
  8.     if [ -L /dev/sndstat ]; then
  9.         rm -f /dev/sndstat
  10.         echo "Remaking /dev/sndstat."
  11.         # Keep this in sync with /sbin/MAKEDEV
  12.         if cd /dev && mknod --mode=0660 sndstat c 14 6 ; then
  13.             chown root:audio sndstat || :
  14.         fi
  15.     fi
  16.     # Remove configuration files
  17.     rm -f \
  18.         /etc/default/alsa \
  19.         /etc/default/alsa.dpkg-old
  20.     # Remove apm symlinks
  21.     rm -f \
  22.         /etc/apm/suspend.d/??alsa \
  23.         /etc/apm/resume.d/??alsa
  24.     # Remove run time files
  25.     rm -rf /var/run/alsa
  26. fi
  27.  
  28.